package org.dromara.device.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.device.domain.DeviceStoreArea;

import java.io.Serial;

/**
 * 设备管理-设备与门店分区关联业务对象 device_store_area
 *
 * @author samuel
 * @date 2024-03-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceStoreArea.class, reverseConvertGenerate = false)
public class DeviceStoreAreaBo extends BaseEntity {

    @Serial
    private static final long serialVersionUID = -8349002459718254714L;
    /**
     * 设备id
     */
    @NotNull(message = "设备id不能为空", groups = { EditGroup.class })
    private Long deviceId;

    /**
     * 门店分区id
     */
    @NotNull(message = "门店分区id不能为空", groups = { EditGroup.class })
    private Long storeAreaId;


}
